<?php
if ( function_exists('register_sidebar') ) {
    register_sidebar(array(
        'before_widget' => '<div class="sidebox">',
        'before_title' => '<div class="sidebox-title"><h2>',
        'after_title' => '</h2></div><div class="sidebox-content">',
        'after_widget' => '</div></div><div class="sidebox-spacer"></div>',
    ));
}

function add_comment_avatar($comment_text) {
	if ( ! get_option('show_avatars') )
		return $comment_text;

	$out = '';
	//$out .= '<a href="http://fr.gravatar.com/" target="_blank">';
        $out .= get_avatar( get_comment_author_email(), 50 );
        //$out .= '</a>';
        $out .= $comment_text;
        return $out;
}
add_filter('comment_text', 'add_comment_avatar', 25);

?>
